package org.ueg.anotacao.model;

import java.io.Serializable;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToOne;

import org.hibernate.annotations.Cascade;

@Entity
public class Usuario implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Long Id;

	@Column(length = 50, nullable = false)
	private String nome;

//	@OneToOne(mappedBy = "usuario", fetch = FetchType.EAGER)
//	@Cascade (value = {CascadeType.ALL})
//	Endereco endereco;
	   

}
